<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
namespace Agp\CoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Bondcs\Rede\AuthorizationCancelResponse;

/**
 * Description of RetornoCancelamentoRede
 *
 * @author bondcs
 * @ORM\Table(name="retorno_cancelamento_rede")
 * @ORM\Entity()
 */
class RetornoCancelamentoRede {
    
    /**
     * @var integer $codRetornoCartaoRede
     *
     * @ORM\Column(name="cod_retorno_cancelamento_rede", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     *
     */
    protected $codRetornoCartaoRede;
    
    /**
     * 
     * @ORM\Column(name="gatewayReference", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $gatewayReference;
    
    /**
     * 
     * @ORM\Column(name="status_rede", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $statusRede;
    
    /**
     * 
     * @ORM\Column(name="msg_rede", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $msgRede;
    
    /**
     * 
     * @ORM\Column(name="merchant_reference", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $merchantreference;
    
    /**
     * 
     * @ORM\Column(name="mode", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $mode;
    
    /**
     * 
     * @ORM\Column(name="reason", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $reason;
    
    /**
     * 
     * @ORM\Column(name="status", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $status;
    
    /**
     * 
     * @ORM\Column(name="time", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $time;
    
    /**
     * 
     * @ORM\Column(name="auth_host_reference", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $authHostReference;
    
    /**
     * 
     * @ORM\Column(name="raw_response", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $rawResponse;
    
    public function __construct(AuthorizationCancelResponse $resposta){
        $this->authHostReference = $resposta->getAuthHostReference();
        $this->gatewayReference = $resposta->getGatewayReference();
        $this->merchantreference = $resposta->getMerchantreference();
        $this->mode = $resposta->getMode();
        $this->msgRede = $resposta->getMsgRede();
        $this->rawResponse = $resposta->getRawResponse();
        $this->reason = $resposta->getReason();
        $this->status = $resposta->getStatus();
        $this->statusRede = $resposta->getStatusRede();
        $this->time = $resposta->getTime();
    }

    public function getCodRetornoCartaoRede() {
        return $this->codRetornoCartaoRede;
    }

    public function setCodRetornoCartaoRede($codRetornoCartaoRede) {
        $this->codRetornoCartaoRede = $codRetornoCartaoRede;
    }

    public function getCodRet() {
        return $this->codRet;
    }

    public function setCodRet($codRet) {
        $this->codRet = $codRet;
    }

    public function getMsgRet() {
        return $this->msgRet;
    }

    public function setMsgRet($msgRet) {
        $this->msgRet = $msgRet;
    }

    public function getData() {
        return $this->data;
    }

    public function setData($data) {
        $this->data = $data;
    }

    public function getRawResponse() {
        return $this->rawResponse;
    }

    public function setRawResponse($rawResponse) {
        $this->rawResponse = $rawResponse;
    }

}

?>
